package fr.mairie.parc.service.impl;

import java.util.List;

import fr.mairie.parc.dao.InstallationDao;
import fr.mairie.parc.domain.Installation;
import fr.mairie.parc.service.InstallationManager;

public class InstallationManagerImpl implements InstallationManager{
	
	private InstallationDao installationDao;

	public InstallationDao getInstallationDao() {
		return installationDao;
	}

	public void setInstallationDao(InstallationDao installationDao) {
		this.installationDao = installationDao;
	}

	@Override
	public List<Installation> selectAll() {
		return installationDao.selectAll();
	}

	@Override
	public void addInstallation(Installation installation) {
		installationDao.addInstallation(installation);
		
	}

	@Override
	public Installation getInstallationById(int id) {
		return installationDao.getInstallationById(id);
	}

	@Override
	public void updateInstallation(Installation installation) {
		installationDao.updateInstallation(installation);
		
	}

	@Override
	public void deleteInstallation(Installation installation) {
		installationDao.deleteInstallation(installation);
		
	}

	

}
